package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWorkFieldContent;
import com.zb.vo.WorkFieldContentVo;

import java.util.List;

/**
 * <p>
 * 工单字段内容表，该表存储字段类型为：单选、多选的内容 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-09-26
 */
public interface ZjWorkFieldContentService extends IService<ZjWorkFieldContent> {

    /**
     * 保存、修改、删除字段内容
     * @param custAccId 商家ID
     * @param workFieldId 工单字段ID
     * @param contentVos
     * @param ids
     */
    void save(Long custAccId, Long workFieldId, List<WorkFieldContentVo> contentVos, List<Long> ids);

    /**
     * 根据工单字段表ID查询单选/多选内容
     * @param workFieldIds
     * @return
     */
    List<ZjWorkFieldContent> getByWorkFieldIds(List<Long> workFieldIds);

    /**
     * 根据工单字段表ID查询单选/多选内容对象
     * @param workFieldId
     * @return
     */
    List<ZjWorkFieldContent> getByWorkFieldId(Long workFieldId);

    /**
     * 根据工单字段表ID查询单选/多选内容删除
     * @param workFieldIds
     */
    void deleteBatchByWorkFieldIds(List<Long> workFieldIds);
}
